-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
ExceptionAsHResultMarshaller`1.xml
79 lines (79 loc) · 5.23 KB
/
ExceptionAsHResultMarshaller`1.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<Type Name="ExceptionAsHResultMarshaller<T>" FullName="System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<T>">
<TypeSignature Language="C#" Value="public static class ExceptionAsHResultMarshaller<T> where T : struct" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract sealed beforefieldinit ExceptionAsHResultMarshaller`1<struct .ctor (class System.ValueType) T> extends System.Object" FrameworkAlternate="net-8.0" />
<TypeSignature Language="DocId" Value="T:System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller`1" />
<TypeSignature Language="VB.NET" Value="Public Class ExceptionAsHResultMarshaller(Of T)" />
<TypeSignature Language="F#" Value="type ExceptionAsHResultMarshaller<'T (requires 'T : struct)> = class" />
<TypeSignature Language="C++ CLI" Value="generic <typename T>
 where T : value classpublic ref class ExceptionAsHResultMarshaller abstract sealed" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract sealed beforefieldinit ExceptionAsHResultMarshaller`1<struct .ctor (class System.ValueType, class System.Numerics.INumber`1<!T>) T> extends System.Object" FrameworkAlternate="net-9.0" />
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<TypeParameters>
<TypeParameter Name="T">
<Constraints>
<ParameterAttribute>DefaultConstructorConstraint</ParameterAttribute>
<ParameterAttribute>NotNullableValueTypeConstraint</ParameterAttribute>
<BaseTypeName>System.ValueType</BaseTypeName>
</Constraints>
<Attributes>
<Attribute FrameworkAlternate="net-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.IsUnmanaged]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.IsUnmanaged>]</AttributeName>
</Attribute>
</Attributes>
</TypeParameter>
</TypeParameters>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Exception), System.Runtime.InteropServices.Marshalling.MarshalMode.UnmanagedToManagedOut, typeof(System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<>))]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Exception), System.Runtime.InteropServices.Marshalling.MarshalMode.UnmanagedToManagedOut, typeof(System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<>))>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<typeparam name="T">The unmanaged type to convert the HResult to.</typeparam>
<summary>Marshals an exception object to the value of its <see cref="P:System.Exception.HResult" /> converted to <typeparamref name="T" />.</summary>
<remarks>This type is used by the COM source generator to enable marshalling exceptions to the HResult of the exception.</remarks>
</Docs>
<Members>
<Member MemberName="ConvertToUnmanaged">
<MemberSignature Language="C#" Value="public static T ConvertToUnmanaged (Exception e);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig !T ConvertToUnmanaged(class System.Exception e) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller`1.ConvertToUnmanaged(System.Exception)" />
<MemberSignature Language="VB.NET" Value="Public Shared Function ConvertToUnmanaged (e As Exception) As T" />
<MemberSignature Language="F#" Value="static member ConvertToUnmanaged : Exception -> 'T" Usage="System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<'T (requires 'T : struct)>.ConvertToUnmanaged e" />
<MemberSignature Language="C++ CLI" Value="public:
 static T ConvertToUnmanaged(Exception ^ e);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>T</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="e" Type="System.Exception">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(1)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(1)>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="e">The exception.</param>
<summary>Marshals an exception object to the value of its <see cref="P:System.Exception.HResult" /> converted to <typeparamref name="T" />.</summary>
<returns>The HResult of the exception, converted to <typeparamref name="T" />.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>